package com.taokatao.cardmee.db.model;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.ToOne;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.DaoException;
import com.taokatao.cardmee.db.DaoSession;
import com.taokatao.cardmee.db.CardStoreDao;
import com.taokatao.cardmee.db.CardGradeDao;

@Entity
public class CardGrade extends DBModel {
    /**
     * 等级id
     */
    @Id private Long id;
    /**
     * 商家id
     */
    @Property(nameInDb = "BUSINESS_ID") private Long businessId;
    /**
     * 等级名称
     */
    @Property(nameInDb = "GRADE_NAME") private String gradeName;

    /**
     * 创建时间
     */
    @Property(nameInDb = "CREATE_TIME") private Long createTime;

    /**
     * 图标
     */
    @Property(nameInDb = "PIC_URL") private String picUrl;
    /**
     * 备注
     */
    @Property(nameInDb = "TYPE_LOG") private String typeLog;

    /**
     * 排序
     */
    @Property(nameInDb = "SORT") private Integer sort;

    @Generated(hash = 1061476251)
    public CardGrade(Long id, Long businessId, String gradeName, Long createTime,
            String picUrl, String typeLog, Integer sort) {
        this.id = id;
        this.businessId = businessId;
        this.gradeName = gradeName;
        this.createTime = createTime;
        this.picUrl = picUrl;
        this.typeLog = typeLog;
        this.sort = sort;
    }

    @Generated(hash = 862669028)
    public CardGrade() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getBusinessId() {
        return this.businessId;
    }

    public void setBusinessId(Long businessId) {
        this.businessId = businessId;
    }

    public String getGradeName() {
        return this.gradeName;
    }

    public void setGradeName(String gradeName) {
        this.gradeName = gradeName;
    }

    public Long getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public String getPicUrl() {
        return this.picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public String getTypeLog() {
        return this.typeLog;
    }

    public void setTypeLog(String typeLog) {
        this.typeLog = typeLog;
    }

    public Integer getSort() {
        return this.sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }



}
